#include "RSA.h"
#include <iostream>
using namespace std;

signed main(){
    RSA rsa(17, 19);
    string msg;

    cout << "input your message as a string " << endl;    
    cin >> msg;

    auto sic_code = rsa.encode(msg);

    cout << "the message was encode as :" << endl;
    for(int num : sic_code){
        cout << num << ' ';
    }
    cout << endl;

    auto decode_msg = rsa.decode(sic_code);

    cout << "decode: " << endl;
    cout << decode_msg; 
}